<div id="main">
    <b>Điều hướng:</b>
    <br />
    [ <b><a href="<?php echo Utility::getSiteUrl(); ?>/managequestions/index">Giáo viên: <?php echo $lectureID; ?></a></b> ]
    <?php if(isset($message)) echo "<center><font color=green><b>$message</b></font></center><br />"; ?>
    <form name='subjects' id='subjects' action='<?php echo Utility::getSiteUrl(); ?>/managequestions/index' method='post'>
    <br />
    <?php
    if(count($subjects)==0)
    {
        echo '<font color=red>'.' Chưa có chủ đề nào!'.'</font>';
    }
    ?>

    <table border='1' width='500'>
        <thead>
            <tr>
                <th width='100'>Mã môn học</th>
                <th width='400'>Tên môn học</th>
            </tr>
        </thead>
        <tbody>
            <?php
            foreach($subjects as $subject)
            {
                ?>
                <tr>
                    <td><center><b><?php echo $subject->id; ?></b></center></td>
                    <td><center><b>
                                <a href="<?php echo Utility::getSiteUrl(); ?>/managequestions/index/<?php echo $subject->id; ?>">
                                    <?php echo $subject->name; ?>
                                </a>
                    </b></center></td>
                <?php
            }
            ?>
        </tbody>
    </table>
    </form>
</div>